<template>
  <div class="header">
    <el-header>
      <div class="title">通用管理系统</div>
      <div>{{ name }}</div>
    </el-header>
  </div>
</template>

<script>
import { getToken } from '../../utils/SetToken'
export default {
  data() {
    return {
      name: '',
    }
  },
  created() {
    this.name = getToken('username')
  },
}
</script>

<style lang="scss">
.header {
  .el-header {
    background: #2578b5;
    color: #fff;
    line-height: 60px;
    display: flex;
    justify-content: space-between;
    .title {
      width: 300px;
      font-size: 30px;
    }
  }
}
</style>
